@echo off
setLocal EnableDelayedExpansion

set PYTHON_OUT=generated\csharp

rmdir /S /Q %PYTHON_OUT%
mkdir %PYTHON_OUT%


for /D %%f in (mProtos/*) do (
  set PROTOC_CMD=protobuf-net\ProtoGen\protogen -i:mProtos\%%f.proto -o:generated\csharp\%%f.cs
)

echo %PROTOC_CMD%
call %PROTOC_CMD%

pause